package com.me.dao;

import com.me.model.normal.NormalUser;

import java.util.Collection;

/**
 * @author 吕旺平
 * @date 2019/10/22 14:26:57
 * @description
 */
public interface IUserDao<T> {
	boolean addUser(T user);
	
	boolean isUserExist(String username) ;
	
	T login(String uname, String pwd);
	
	boolean isUserCanLogin(String uname, String pwd) ;
	
	boolean update(T user);

	Collection<T> getAll();

	boolean remove(String id);

	T getById(String id);
}
